package com.xiaofeng.auth.domain.service;

import com.xiaofeng.auth.domain.entity.AuthPermissionBO;
import com.xiaofeng.subject.infra.basic.entity.AuthPermission;

import java.util.List;

/**
 * @Author: chc
 * @Date: 2024/02/21/11:48
 * @Description:
 */
public interface AuthPermissionDomainService {

    /**
     * 新增角色
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 更新权限
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 根据用户名查询该用户有那些权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
